<?php

namespace App\Models\Entity\Pm;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class Album
 * @package App\Models\Entity\Column
 * @version August 1, 2017, 4:32 pm UTC
 */
class PriceVasseti extends Model
{
    // use SoftDeletes;

    public $table = 'price_vassetis';

    // protected $dates = ['deleted_at'];

    public $fillable = [
        'price_id',
        'vasseti_id',
        'created_at',
        'updated_at',
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'price_id'   => 'integer',
        'vasseti_id' => 'integer',
    ];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     **/
    public function price()
    {
        return $this->hasOne(\App\Models\Entity\Pm\Price::class, 'id', 'price_id');
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     **/
    public function vasseti()
    {
        return $this->hasOne(\App\Models\Entity\Asset\Video\Vasseti::class, 'id', 'vasseti_id');
    }
}